package com.vcredit.creditcat.model;



/**
 * 
 **/
public class AddressList {
	/**  **/
	private java.lang.Long contactId;
	/**  **/
	private java.lang.Long custId;
	/**  **/
	private java.lang.String name;
	/**  **/
	private java.lang.String mobile;
	
	public AddressList() {
		super();
	}
	
	public AddressList(Long custId, String name, String mobile) {
		super();
		this.custId = custId;
		this.name = name;
		this.mobile = mobile;
	}

	public java.lang.Long getContactId() {
		return contactId;
	}

	public void setContactId(java.lang.Long contactId) {
		this.contactId = contactId;
	}

	public java.lang.Long getCustId() {
		return custId;
	}

	public void setCustId(java.lang.Long custId) {
		this.custId = custId;
	}

	public java.lang.String getName() {
		return name;
	}

	public void setName(java.lang.String name) {
		this.name = name;
	}

	public java.lang.String getMobile() {
		return mobile;
	}

	public void setMobile(java.lang.String mobile) {
		this.mobile = mobile;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(!(obj instanceof AddressList))return false;
		return obj.hashCode()==this.hashCode();
	}
	@Override
	public int hashCode() {
		return (getCustId()+"_"+getMobile()).hashCode();
	}
}